package me.keiwu.admin.domain;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * Created by kei on 08/12/2017.
 */
@Data
@Entity
@Table(uniqueConstraints = {
        @UniqueConstraint(name = "uidx_sceneStr", columnNames = "sceneStr")
})
public class WXQRCode extends AbstractBaseEntity {

    @Id
    @GeneratedValue
    private Integer id;

    @Column(length = 10)
    private String sceneStr;

    @Column(length = 200)
    private String description;

    @Column(length = 100)
    private String cosPath;

    @Column(length = 200)
    private String url;

    private Integer visits = 0;

    private Integer registers = 0;

}
